<html>
<head>
<title>Add hilite_index_event</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link media="all" href="/cms/css/cms.min.css" type="text/css" rel="stylesheet" /> 
<link rel="stylesheet" type="text/css" href="/cms/css/tag/token-input.css" />
<script  type="text/javascript" src="/cms/js/cms.1.1.min.js"></script>
<script type="text/javascript" src="/cms/js/tag/jquery.tokeninput.js"></script> 
<script language="JavaScript" src="/cms/js/cleditor/jquery.cleditor.min.js"></script>
<script language="JavaScript" src="/cms/js/jquery.validate.js"></script>
<script language="JavaScript" src="/cms/js/autocomplete/textarea.js"></script>

</head>

<body>
{#include file="$navigation"#}
<div style="float:right;" id="login"></div>

<script>
$(document).ready(function() {	

});	
  function validate_form(form){
	  if (validator.form())  form.submit(); else alert('Some fields has error. Please check and resubmit');
  }
</script>

<H1><span id="parent_key_label"></span>Hilite index event</H1>
<form name="form_showadd" method="post" id="form_showadd" action="{#$self_url#}" enctype="multipart/form-data">	
<div class='tableWrapper' style="width:100%;margin:0;padding:0;">
  <div class='tableHeader' >

	<ul class="tableActions">
  <li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="Submit" value=" 儲存 " onclick="form.subaction.value='edit_after_add'; form.submit();" type="button"></li><li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" type="submit" name="Submit" value=" 確定 "></li><li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="Submit" value=" 儲存並新增 " onclick="form.subaction.value='showadd_after_add'; form.submit();" type="button"></li><li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="dummy" value=" 取消 " size="3" onclick="javascript:window.location.href='{#$self_url#}/list'" type="button"></li>
	</ul>

  <div class='clear'></div>
  <div class='corner left'></div>
  <div class='corner right'></div>
  </div>	
<table border="0" cellspacing='0' >

<tr id="tr_title"><td><B>標題</B></td>
<td id="td_title"><input id="field_title" type="text" name="title" value=""></td></tr>
<tr id="tr_body"><td><B>內容</B></td>
<td id="td_body"><input id="field_body" type="text" name="body" size="80" value=""></td></tr>
<tr id="tr_event_type"><td><B>體驗活動分類</B></td>
<td id="td_event_type">{#$showadd_data.event_type#}</td></tr>
<tr id="tr_url"><td><B>網址</B> <img src="/cms/images/ico/info.gif" class="tips" title="例如: http://itrial.hk/event.php?action=detail&eid=1<BR/><BR/>eid後為該活動id" /></td>
<td id="td_url"><input id="field_url" type="text" name="url" size="80" value="http://itrial.hk/event.php?action=detail&eid="></td></tr>
<tr id="tr_photo"><td><B>photo</B></td>
<td id="td_photo"><input type="file" name="photo"> ( 支持：jpg,gif,jpeg,png)<label><input type="checkbox" name="photo_clear" value="1" />清除</label><br/><BR/>
<div id="photo_geometry"></div><SCRIPT type=text/javascript>
$(document).ready(function() {
$.jcrop_cms("photo_geometry",  
"{#$showadd_data.photo_image2#}"+'?'+Math.floor(Math.random()*9999+1),  "{#$showadd_data.photo_imagesize2#}",  //src image and size
"{#$showadd_data.photo_imageparam1#}", "{#$showadd_data.photo_imagesize1#}" , // current thumbnail size
"132x130",  // ps assign size
"photo_crop_param1",
"photo_thumbnailsize1", "0");
});</script></td></tr>

  <tr>
    <td>&nbsp;</td>
    <td>
     	
    <input type="hidden" name="action" value="add"><input name="subaction" type="hidden">
     <ul class="tableActions">
    <li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="Submit" value=" 儲存 " onclick="form.subaction.value='edit_after_add'; form.submit();" type="button"></li><li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" type="submit" name="Submit" value=" 確定 "></li><li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="Submit" value=" 儲存並新增 " onclick="form.subaction.value='showadd_after_add'; form.submit();" type="button"></li><li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="dummy" value=" 取消 " size="3" onclick="javascript:window.location.href='{#$self_url#}/list'" type="button"></li>
    </ul>
  </td>
  </tr>
</table>

</form>

<script type="text/javascript"> 	
$(function(){
  $(".tips").tipTip({defaultPosition: "right", edgeOffset: 10});
}); 
</script>

<!--POSTRUNJS-->
</body>
</html>
